package com.beidouapp.dao;

import java.util.List;
import java.util.Map;
 
import com.beidouapp.domain.pojo.Resource; 
import com.beidouapp.domain.pojo.RoleAndResource; 

public interface ResourceDao extends BaseDao<Resource> {
	public List<Resource> findResourcesByResource(Resource resource);

	public List<Resource> findRoleResourcesByRoleId(Long roleId);

	public List<Resource> findRoleResourcesByContactsLoginName(String LoginName);

	public int removeRoleAndResourceByRoleId(Long roleId);

	public int addRoleAndResourceBatch(List<RoleAndResource> list);

	public int removeRoleAndResourceBatch(Map<String, Object> params);

	// -------------------
}
